package com.mengtian_tech.smart_lab.entity.dict;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: 设备型号
 * @author onlineGenerator
 * @date 2016-06-11 11:47:39
 * @version V1.0   
 *
 */
@Entity
@Table(name = "dict_device_model", schema = "")
@SuppressWarnings("serial")
public class DictDeviceModelEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.String id;
	/**创建日期*/
	private java.util.Date createDate;
	
	/** 设备品牌 */ 
	@Excel(name="设备品牌")
	private DictDeviceBrandEntity brand;
	
	/**名称*/
	@Excel(name="型号名称")
	private java.lang.String modelName;
	/**简拼*/
	@Excel(name="简拼")
	private java.lang.String py;
	/**排序*/
	@Excel(name="排序")
	private java.lang.String orderNo;
	/**删除*/
	private java.lang.Integer deleted;
	

	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=36)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  创建日期
	 */
	@Column(name ="CREATE_DATE",nullable=true,length=20)
	public java.util.Date getCreateDate(){
		return this.createDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  创建日期
	 */
	public void setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  名称
	 */
	@Column(name ="NAME",nullable=true,length=100)
	public java.lang.String getModelName(){
		return this.modelName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  名称
	 */
	public void setModelName(java.lang.String name){
		this.modelName = name;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  简拼
	 */
	@Column(name ="PY",nullable=true,length=32)
	public java.lang.String getPy(){
		return this.py;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  简拼
	 */
	public void setPy(java.lang.String py){
		this.py = py;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  排序
	 */
	@Column(name ="ORDER_NO",nullable=true,length=32)
	public java.lang.String getOrderNo(){
		return this.orderNo;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  排序
	 */
	public void setOrderNo(java.lang.String orderNo){
		this.orderNo = orderNo;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  删除
	 */
	@Column(name ="DELETED",nullable=true,length=1)
	public java.lang.Integer getDeleted(){
		return this.deleted;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  删除
	 */
	public void setDeleted(java.lang.Integer deleted){
		this.deleted = deleted;
	}

	@ManyToOne
	@JoinColumn(name="brand_id")
	public DictDeviceBrandEntity getBrand() {
		return brand;
	}

	public void setBrand(DictDeviceBrandEntity brand) {
		this.brand = brand;
	}

	@Override
	public String toString() {
		return   modelName ;
	}
}
